package zhu.areas.recruit.action;

import java.util.Date;
import com.opensymphony.xwork2.ActionSupport;
import zhu.areas.recruit.service.RecruitWaServiceImpl;
import zhu.areas.recruit.data.CandidateApp;
import zhu.areas.recruit.data.BothInfoBack;
//企业招聘中招聘计划点评、应聘人员申请、双方信息反馈子模块
public class RecruitWaAction extends ActionSupport {
	// --申请数据
	private int ID;
	private int EmpoymentID;
	private int ApplierID;
	private String ApplierName;
	private Date AppTime;
	private int EstatueID;
	private int AuditorID;
	private String AuditorName;
	private Date AuditTime;
	private int ResumeID;
	private String AccessorPath;
	private String AccessorName;
	private CandidateApp candidateapp;
	//--双方信息反馈数据项
	
	
	
	
	
	private RecruitWaServiceImpl recruitwaserviceimpl;

	// 临时进入页面方法(填写申请表)
	public String recruiment() {
		return SUCCESS;
	}	
	public String EnterReply(){
		return SUCCESS;
	}
	// 发送求职信息
	public String addCandidateApp() {
		CandidateApp candidateapp = new CandidateApp();
		this.convertToCandidateApp(candidateapp);
		if (recruitwaserviceimpl.addCandidateApp(candidateapp))
			return SUCCESS;
		return ERROR;
	}

	//
	public String findCandidateApp() {
		candidateapp = recruitwaserviceimpl.findcandidateappByApplierID(
				"ApplierID", ApplierID);
		return SUCCESS;

	}

	// 页面数据封装为实例对象（CandidateApp）
	private void convertToCandidateApp(CandidateApp candidateapp) {
		// Resume resume;
		candidateapp.setID(ID);
		candidateapp.setEmpoymentID(EmpoymentID);
		candidateapp.setApplierID(ApplierID);
		candidateapp.setApplierName(ApplierName);
		candidateapp.setAppTime(AppTime);
		candidateapp.setEstatueID(EstatueID);
		candidateapp.setAuditorID(AuditorID);
		candidateapp.setAuditorName(AuditorName);
		candidateapp.setAuditTime(AuditTime);
		candidateapp.setResumeID(ResumeID);
		candidateapp.setAccessorName(AccessorName);
		candidateapp.setAccessorPath(AccessorPath);
	}

	public RecruitWaServiceImpl getRecruitwaserviceimpl() {
		return recruitwaserviceimpl;
	}

	public void setRecruitwaserviceimpl(
			RecruitWaServiceImpl recruitwaserviceimpl) {
		this.recruitwaserviceimpl = recruitwaserviceimpl;
	}

	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		ID = iD;
	}

	public int getEmpoymentID() {
		return EmpoymentID;
	}

	public void setEmpoymentID(int empoymentID) {
		EmpoymentID = empoymentID;
	}

	public int getApplierID() {
		return ApplierID;
	}

	public void setApplierID(int applierID) {
		ApplierID = applierID;
	}

	public String getApplierName() {
		return ApplierName;
	}

	public void setApplierName(String applierName) {
		ApplierName = applierName;
	}

	public Date getAppTime() {
		return AppTime;
	}

	public void setAppTime(Date appTime) {
		AppTime = appTime;
	}

	public int getEstatueID() {
		return EstatueID;
	}

	public void setEstatueID(int estatueID) {
		EstatueID = estatueID;
	}

	public int getAuditorID() {
		return AuditorID;
	}

	public void setAuditorID(int auditorID) {
		AuditorID = auditorID;
	}

	public String getAuditorName() {
		return AuditorName;
	}

	public void setAuditorName(String auditorName) {
		AuditorName = auditorName;
	}

	public Date getAuditTime() {
		return AuditTime;
	}

	public void setAuditTime(Date auditTime) {
		AuditTime = auditTime;
	}

	public int getResumeID() {
		return ResumeID;
	}

	public void setResumeID(int resumeID) {
		ResumeID = resumeID;
	}

	public String getAccessorPath() {
		return AccessorPath;
	}
	public void setAccessorPath(String accessorPath) {
		AccessorPath = accessorPath;
	}
	public String getAccessorName() {
		return AccessorName;
	}
	public void setAccessorName(String accessorName) {
		AccessorName = accessorName;
	}


	public CandidateApp getCandidateapp() {
		return candidateapp;
	}

	public void setCandidateapp(CandidateApp candidateapp) {
		this.candidateapp = candidateapp;
	}

	


}
